+2008-08-12 Matthias Clasen <mclasen@redhat.com>
+
+ Bug 546730 – gtk_status_icon_get_gicon() should use a return instead
+ of an ouput parameter
+
+ * gtk/gtkstatusicon.[hc]: Change gtk_status_icon_get_gicon to
+ return the GIcon directly.
+ Complaint by Murray Cumming
+
2008-08-11 Michael Natterer <mitch@imendio.com>
Bug 546754 – 2.13.6 update create rendering issue in the evolution
if (priv->storage_type != GTK_IMAGE_GICON)
g_value_set_object (value, NULL);
else
- {
- GIcon *icon;
-
- gtk_status_icon_get_gicon (status_icon, &icon);
- g_value_set_object (value, icon);
- }
+ g_value_set_object (value, gtk_status_icon_get_gicon (status_icon));
break;
case PROP_STORAGE_TYPE:
g_value_set_enum (value, gtk_status_icon_get_storage_type (status_icon));
/**
* gtk_status_icon_get_gicon:
* @status_icon: a #GtkStatusIcon
- * @icon: a place to store a #GIcon
*
* Retrieves the #GIcon being displayed by the #GtkStatusIcon.
* The storage type of the status icon must be %GTK_IMAGE_EMPTY or
*
* If this function fails, @icon is left unchanged;
*
+ * Returns: the displayed icon, or %NULL if the image is empty
+ *
* Since: 2.14
**/
-void
-gtk_status_icon_get_gicon (GtkStatusIcon *status_icon,
- GIcon **icon)
+GIcon *
+gtk_status_icon_get_gicon (GtkStatusIcon *status_icon)
{
GtkStatusIconPrivate *priv;
if (priv->storage_type == GTK_IMAGE_EMPTY)
priv->image_data.gicon = NULL;
- *icon = priv->image_data.gicon;
+ return priv->image_data.gicon;
}
/**
GdkPixbuf *gtk_status_icon_get_pixbuf (GtkStatusIcon *status_icon);
G_CONST_RETURN gchar *gtk_status_icon_get_stock (GtkStatusIcon *status_icon);
G_CONST_RETURN gchar *gtk_status_icon_get_icon_name (GtkStatusIcon *status_icon);
-void gtk_status_icon_get_gicon (GtkStatusIcon *status_icon,
- GIcon **icon);
+GIcon *gtk_status_icon_get_gicon (GtkStatusIcon *status_icon);
gint gtk_status_icon_get_size (GtkStatusIcon *status_icon);